<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单小游戏</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <header>
        <h1>简单小游戏</h1>
        <div class="score-container">
            <span>分数: </span><span id="score">0</span>
        </div>
    </header>
    
    <main>
        <div id="game-start" class="game-screen">
            <h2>欢迎来到简单小游戏！</h2>
            <p>使用方向键控制角色移动</p>
            <p>收集金币，避开障碍物</p>
            <button id="start-button">开始游戏</button>
        </div>
        
        <div id="game-container" class="game-screen hidden">
            <div id="game-area">
                <div id="player"></div>
                <!-- 游戏元素将通过JavaScript动态添加 -->
            </div>
            <div class="game-info">
                <div class="lives">
                    <span>生命值: </span>
                    <div class="hearts">
                        <span class="heart">❤</span>
                        <span class="heart">❤</span>
                        <span class="heart">❤</span>
                    </div>
                </div>
                <div class="level">
                    <span>关卡: </span><span id="level">1</span>
                </div>
            </div>
        </div>
        
        <div id="game-over" class="game-screen hidden">
            <h2>游戏结束</h2>
            <p>最终分数: <span id="final-score">0</span></p>
            <button id="restart-button">重新开始</button>
        </div>
    </main>
    
    <footer>
        <p>&copy; 2025 简单小游戏 - 一个简单的Web游戏项目</p>
    </footer>
    
    <script src="game.js"></script>
</body>
</html>